<template>
	<view class="videos">
		<video id="myVideo" :style="{ height: windowHeight + 'px' }" style="width: 100%;"
				:src="videourl"
				@error="videoErrorCallback" ></video>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				windowHeight: 0,
				videourl: ''
			}
		},
		onLoad() {
			
		},
		onShow() {
			
		},
		onHide(){
			
		},
		mounted() {
			var that = this;
						uni.getSystemInfo({
						    success: function (res) {
								that.windowHeight = res.windowHeight;
						    }
						});
		},
		methods:{
			videoErrorCallback: function(e) {
							console.log(e)
						},
		}
	}
</script>

<style>
</style>
